﻿using Microsoft.Extensions.Configuration;

namespace Sky.App.AI
{
    public class Config
    {
        protected static IConfiguration GetConfiguration()
        {
            IConfiguration configuration = new ConfigurationBuilder().SetBasePath(Environment.CurrentDirectory)
                                                                     .AddJsonFile("appsettings.json", true, true)
                                                                     .AddInMemoryCollection()
                                                                     .Build();
            return configuration;
        }

        public static string DeepSeekAppUrl()
        {
            var configuration = GetConfiguration();
            return configuration["Config:DeepSeekAppUrl"] ?? "";
        }

        public static string DeepSeekAppKey()
        {
            var configuration = GetConfiguration();
            return configuration["Config:DeepSeekAppKey"] ?? "";
        }
    }
}